-- card: 5438 from stack: in -- bmap block id: 8126 -- flags: 0000 -- background id: 3493 -- name: right -- part 1 (button) -- low flags: 00 -- high flags: A003 -- rect: left=88 top=211 right=233 bottom=188 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: RIGHT ----- HyperTalk script ----- on mouseUp put editString("RIGHT", field A,cd fld num) into field B end mouseUp -- part 2 (field) -- low flags: 00 -- high flags: 0002 -- rect: left=296 top=214 right=231 bottom=327 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 97 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: num -- part contents for background part 1 ----- text ----- RIGHT -- part contents for background part 2 ----- text ----- RIGHT will return a substring portion of the right side of an input string. The function acts just like the BASIC language RIGHT$ function. This function is limited to strings only and will ignore any characters past position 255. -- part contents for background part 3 ----- text ----- editString("RIGHT", source, numChars) • source is the intput variable or field containing the text • numChars is the length of the desired substring put editString("RIGHT", field A, 3) into field B If field A is "abcdefg" the function will return "efg" -- part contents for card part 2 ----- text ----- 3 -- part contents for background part 4 ----- text ----- abcdefg -- part contents for background part 5 ----- text ----- efg